import axios from '../../axios'

/* 
 * 导出文档
 */

// 保存
export const exports = (data) => {
    return axios({
        url: '/api/file/exports',
        method: 'post',
        data
    })
}

export const deleteFile = (data) => {
    return axios({
        url: '/api/file/delete',
        method: 'post',
        data
    })
}

export const list = (data) => {
    return axios({
        url: '/api/file/list/'+data,
        method: 'get' 
    })
}
export const page = (data) => {
    return axios({
        url: '/api/file/filePage',
        method: 'post' ,
        data
    })
}

export const fileSave = (data) => {
    return axios({
        url: '/api/file/fileSave',
        method: 'post' ,
        data
    })
}
export function addNotice(data) {
    return request({
        url: '/jdz/fileSave',
        method: 'post',
        data:data,
        headers:{
            "Content-Type": "multipart/form-data"
        }
    })
}